package com.ktjy.ch04.mapper;

import com.ktjy.ch04.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    public List<SysUser> selectList(@Param("realName") String realName, @Param("roleId") Long roleId);
    public List<SysUser> selectListByChoose(SysUser sysUser);
    public List<SysUser> getUserByRoleIdArray(Integer[] roleIds);

    public List<SysUser> getUserByRoleIdList(List<Integer> roleList);

    public List<SysUser> getUserByRoleIdMap(Map<String, Object> role);
    public int update(SysUser sysUser);

    public List<SysUser> selectPageList(@Param("realName") String realName, @Param("roleId")Integer roleId
    ,@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize );
}
